package io.renren.modules.app.service.info.impl;

import io.renren.modules.app.dao.info.WorkYearDao;
import io.renren.modules.app.entity.info.WorkYearEntity;
import io.renren.modules.app.service.info.WorkYearService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

@Service("ycWorkYearService")
public class WorkYearServiceImpl extends ServiceImpl<WorkYearDao, WorkYearEntity> implements WorkYearService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WorkYearEntity> page = this.page(
                new Query<WorkYearEntity>().getPage(params),
                new QueryWrapper<WorkYearEntity>()
        );

        return new PageUtils(page);
    }

}